package com.j2ee.xml.document;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class DocumentFactoryTest {
	
	@Test
	public void testDocumentFactory() {
		ApplicationContext context = 
				new ClassPathXmlApplicationContext("applicationContext.xml") ;
		DocumentFactory documentFactory = (DocumentFactory)context.getBean("documentFactory") ;
		documentFactory.read() ;
		documentFactory.write();
	}

}
